<%@ page language="java"  pageEncoding="utf-8"%>
<%@page import="entitybean.oc_user_name.EntityBeanOc_User_Name;"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			EntityBeanOc_User_Name e=(EntityBeanOc_User_Name)request.getSession().getAttribute("Ocean_User");
	//String rootPath = request.getScheme() + "://"
		//	+ request.getServerName() + ":" + request.getServerPort()
			//+ "/Kindedit/servlet/Init_RichText_OC_NEWS?userxml="+e.to_string()+"&useraction=1";
			String rootPath = request.getScheme() + "://"
           + request.getServerName() + ":" + request.getServerPort()
           +"/Kindedit/jsp/RichTextOnly.jsp";
//	System.out.println("e.tostring="+e.to_string());			
//	System.out.println("rootPath="+rootPath);		

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>新闻发布页面</title>
		<link rel="Shortcut Icon" href="favicon.ico">
		<link rel="Bookmark"  href="favicon.ico">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" charset="utf-8" src="<%=request.getContextPath()%>/js/fit_iframe.js"></script>
        <script type="text/javascript" language="javascript">
		function submit_me()
		{
			//window.alert("提交数据标案检查");
			//window.alert("文本内容=");
			var win = window.frames["win"];//你的iframe;
			var content1=win.document.getElementById("content1").value;
			var title=document.getElementById("title").value;
			if(content1=="")
			{
				window.alert("请输入文档内容");
				return false;
			}
			if(title=="")
			{
				window.alert("请输入标题内容");
				return false;
			}
			//alert(aa.document.getElementById("content1").value);//取值
			
			}
		</script>
	</head>

	<body><form name="form1" method="post" action="">
<table width="750" border="0" cellspacing="1" cellpadding="1">
<tr>
  <td>标题</td>
  <td><input type="text" name="title" id="title"></td>
</tr>
  <tr>
    <td colspan="2"><iframe src="<%=rootPath%>"  id="win" name="win"  width="750px" height="600px" onload="Javascript:SetWinHeight(this)" frameborder="0" scrolling="no"></iframe></td>
  </tr>
  <tr>
    <td colspan="2" align="right"><input type="button" name="button" id="button" value="提交文本内容" onClick="submit_me()"></td>
  </tr>
</table>
</form>
		<input type="hidden" id="e_tostring" name="e_tostring" value="<%=e.to_string()%>">
		
	
	</body>
</html>
